<?php
	// beg: container
	echo '<span class="wrapper cisco-container">';
	
		// beg: container-actions
		echo '<span class="container-actions">';
		
			// go to calendar
			echo '<a href="' . base_url() . 'demos/" class="button btn-beggin">See the calendar</a>';
			
			// go to admin demos
			echo '<a href="' . base_url() . 'demos/" class="button">Admin Demos</a>';
			
			// go to check demos
			echo '<a href="' . base_url() . 'demos/" class="button btn-end">Check my Demos</a>';
			
			echo '<span class="clear"></span>';
			
		echo '</span>';
		// end: container-actions
		
		// beg: form add demo
		echo form_open(current_url());
			echo '<span class="form form-add-demo">';
				
				echo '<h2>Add Fixed Demo</h2>';
				
				// beg: form-messenger
				echo '<span class="form-messenger"></span>';
				// end: form-messenger
				
				// beg: left-content
				echo '<span class="col-2">';
				
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Date</span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="' . date('l, F d, Y') . '" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					/*
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">date end</span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="' . (($this->input->get('end'))? '' . date('l, F d, Y', strtotime($this->input->get('end'))) .'' : '') . '" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					*/
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Location <span class="red">*</span></span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect">';
								echo '<option value="0">-- Select Location --</option>';
								echo '<option value="0">In Person Demo in CCIC Lab/SJC-07</option>';
								echo '<option value="0" selected="selected">In Person Demo in CCIC Lab/SJC-03</option>';
								echo '<option value="0">In Person Demo in CCIC Lab/SJC-01</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: special request
					echo '<span class="form-row">';
						echo '<span class="row-label">Special Request/Note to CCIC</span>';
						echo '<span class="row-field">';
							echo '<textarea name="adddemo-special-request" id="adddemo-special-request" class="farea"></textarea>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: special request
					
					
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Booking acceptance acknowledgement</span>';
							echo '<span style="display: block; clear: both; margin-bottom: 10px; font-size: 9px; font-style: italic;">I understand that the demostration are run to a schedule; arriving more than 15 minutes may result in cancelation</span>';
							echo '<span class="row-field" style="margin-right: 30px;">';
								echo '<input type="radio" style="margin-top: 10px; margin-right: 10px;" name="understand" value="1" />Yes';
							echo '</span>';
							echo '<span class="row-field" style="margin-right: 30px;">';
								echo '<input type="radio" style="margin-top: 10px; margin-right: 10px;" name="understand" value="0" />No';
							echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					echo '<span class="booking">';
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Account Mgr ID <span class="red">*</span></span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Customer Name <span class="red">*</span></span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Country</span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect">';
								echo '<option value="0">-- Select Country --</option>';
								echo '<option value="0">USA</option>';
								echo '<option value="0">Argentina</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Customer Segment</span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect">';
								echo '<option value="0">-- Select Customer Segment --</option>';
								echo '<option value="0">Commercial</option>';
								echo '<option value="0">Enterprise</option>';
								echo '<option value="0">Public Sector</option>';
								echo '<option value="0">Service Providers</option>';
								echo '<option value="0">AMX</option>';
								echo '<option value="0">TMX</option>';
								echo '<option value="0">GET</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Customer Vertical</span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect">';
								echo '<option value="0">-- Select Customer Vertical --</option>';
								echo '<option value="0">Financial</option>';
								echo '<option value="0">Retail</option>';
								echo '<option value="0">Education</option>';
								echo '<option value="0">Health Care</option>';
								echo '<option value="0">Public Safety</option>';
								echo '<option value="0">Other</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Number of Attendees <span class="red">*</span></span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Audience Type</span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect" size="2" multiple="multiple">';
								echo '<option value="0">CXO</option>';
								echo '<option value="0">Management</option>';
								echo '<option value="0">Technical</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: special request
					echo '<span class="form-row">';
						echo '<span class="row-label">Additional Info</span>';
						echo '<span class="row-field">';
							echo '<textarea name="adddemo-special-request" id="adddemo-special-request" class="farea"></textarea>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: special request
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Expected Revenue</span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect">';
								echo '<option value="0">&lt; $100 K</option>';
								echo '<option value="0">$100 K - $500 K</option>';
								echo '<option value="0">$500 K - $1 M</option>';
								echo '<option value="0">$1 M - $2 M</option>';
								echo '<option value="0">$2 M +</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: special request
					echo '<span class="form-row">';
						echo '<span class="row-label">Description</span>';
						echo '<span class="row-field">';
							echo '<textarea name="adddemo-special-request" id="adddemo-special-request" class="farea"></textarea>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: special request
					echo '</span>';
					// end: booking
					
					// beg: other-booking
					echo '<span class="other-booking">';
					// echo '<h2>Other</h2>';
					
					// beg: location
					echo '<span class="form-row">';
						echo '<span class="row-label">Type</span>';
						echo '<span class="row-field">';
							echo '<select id="adddemo-location" name="adddemo-location" class="fselect">';
								echo '<option value="0">CRS</option>';
								echo '<option value="0">Training</option>';
								echo '<option value="0">PR</option>';
								echo '<option value="0">Marketing</option>';
							echo '</select>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: location
					
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Host Cisco ID</span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Guest Name</span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					
					// beg: date-start
					echo '<span class="form-row">';
						echo '<span class="row-label">Number of Attendees</span>';
						echo '<span class="row-field"><input type="text" class="ftext" name="adddemo-date-start" id="adddemo-date" value="" /></span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: date-start
					
					// beg: special request
					echo '<span class="form-row">';
						echo '<span class="row-label">Objetive</span>';
						echo '<span class="row-field">';
							echo '<textarea name="adddemo-special-request" id="adddemo-special-request" class="farea"></textarea>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: special request
					
					// beg: special request
					echo '<span class="form-row">';
						echo '<span class="row-label">Description</span>';
						echo '<span class="row-field">';
							echo '<textarea name="adddemo-special-request" id="adddemo-special-request" class="farea"></textarea>';
						echo '</span>';
						echo '<span class="clear"></span>';
					echo '</span>';
					// end: special request
					
					echo '</span>';
					// end: other-booking
					
				echo '</span>';
				// end: left-content
				
				// beg: right-content
				echo '<span class="col-2"><span class="adddemo-dates-times">';
					
					// beg: demos and times
					echo '<b>Demos and Times </b><span class="red">*</span><br /><br />';
					// end: demos and times
					
					// beg: demos and times form
					echo '<span class="demos-and-times">';
						
						// beg: form-row
						echo '<span class="form-row">';
							echo '<span class="row-field"><input type="checkbox" class="fcheck-demo" name="adddemo-demotime-check-1" id="adddemo-demotime-check-1" /></span>';
							echo '<span class="row-field">';
								echo '<select name="adddemo-demotime-demo-1" id="adddemo-demotime-demo-1" class="ftext-demo">';
									echo '<option value="0">-- Select the Demo --</option>';
									echo '<option value="1">FlexPod - Executive Level Demo</option>';
									echo '<option value="2" selected="selected">FlexPod - Executive Level Demo</option>';
									echo '<option value="3">FlexPod - Executive Level Demo</option>';
								echo '</select>';
							echo '</span>';
							echo '<span class="row-field">';
								echo '<select id="adddemo-demotime-time-1" name="adddemo-demotime-time-1" class="fselect-demo">';
									echo '<option value="9:00">9:00</option><option value="9:30">9:30</option><option value="10:00">10:00</option><option value="10:30">10:30</option><option value="11:00">11:00</option><option value="11:30">11:30</option><option value="12:00">12:00</option><option value="12:30">12:30</option><option value="15:00">15:00</option><option value="15:30">15:30</option><option value="16:00">16:00</option><option value="16:30">16:30</option><option value="17:00">17:00</option><option value="17:30">17:30</option><option value="18:00">18:00</option><option value="18:30">18:30</option><option value="19:00">19:00</option><option value="19:30">19:30</option><option value="20:00">20:00</option><option value="20:30">20:30</option><option value="21:00">21:00</option><option value="21:30">21:30</option><option value="22:00">22:00</option><option value="22:30">22:30</option><option value="23:00">23:00</option><option value="23:30">23:30</option>';
								echo '</select>';
							echo '</span>';
							echo '<span class="row-field"><a href="javascript: void(0);" class="action delete" title="Delete Field"></a></span>';
							echo '<span class="clear"></span>';
						echo '</span>';
						// beg: form-row
						
					echo '</span>';
					// end: demos and times form
					echo '<span class="clear"></span>';
					echo '<a href="javascript: void(0);" class="button" id="add-demo-field">add demo</a>';
					
				echo '</span></span>';
				// end: right-content
				
				echo '<span class="clear"></span>';
				
				
				echo '<span class="form-actions">';
					echo '<button type="submit">Set Demo</button>';
				echo '</span>';
				
			echo '</span>';
		echo form_close();
		// end: form add demo
		
		/*
		echo '<div id="loading" style=display:"none">loading...</div>';
		echo '<div id="calendar"></div>';
		*/
		
	echo '</span>';
	// end: container
